<?php /* Smarty version Smarty-3.1.11, created on 2013-03-12 12:23:03
         compiled from ".\smarty\templates\loginPage.tpl" */ ?>
<?php /*%%SmartyHeaderCode:30293513a1dec1c6ca0-75600786%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '2ab0b59f58d5ca5d507dbc850033d77e78173273' => 
    array (
      0 => '.\\smarty\\templates\\loginPage.tpl',
      1 => 1361446103,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '30293513a1dec1c6ca0-75600786',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_513a1dec93f349_90917280',
  'variables' => 
  array (
    'logged' => 0,
    'created' => 0,
    'formUserValue' => 0,
    'userReferred' => 0,
    'currentPage' => 0,
    'hotelID' => 0,
    'supplierType' => 0,
    'roomRateKey' => 0,
    'roomRateCode' => 0,
    'roomTypeCode' => 0,
    'hotelImage' => 0,
    'hotelName' => 0,
    'roomDescription' => 0,
    'total' => 0,
    'averageRate' => 0,
    'roomtotal' => 0,
    'nightlyRateTotal' => 0,
    'surchargeTotal' => 0,
    'currencyCode' => 0,
    'username' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_513a1dec93f349_90917280')) {function content_513a1dec93f349_90917280($_smarty_tpl) {?><div id="templatemo_main_top"></div>
<div id="templatemo_main">
    <div class="col_12 float_l">
        <div id="search-widget">
            
            <?php if ($_smarty_tpl->tpl_vars['logged']->value===false){?>   
                <form action="login.php#login" method="post" onsubmit="document.getElementById('current_url').value=document.URL">
                    <table>
                        <?php if ($_smarty_tpl->tpl_vars['created']->value===true){?>
                        <tr>
                            <td colspan="2"><label style="color:lightgreen;">Your account was successfully created!</label></td>
                        </tr>
                        <?php }?>
                        <tr>
                            <td colspan="2"><label style="font-style: italic">Enter your user name and password below to access your acount...</label></td>
                        </tr>
                        <tr id="login_error" style="visibility:hidden">
                            <td colspan="2"><label style="color:red;">Invalid user name or password!</label></td>
                        </tr>
                        <tr>
                            <td><label>User name</label></td>
                            <td><input id="user" onfocus="clearUserInput(this.value,1);" onblur="clearUserInput(this.value,2);" type="text" name="user" value="<?php echo $_smarty_tpl->tpl_vars['formUserValue']->value;?>
" /></td>
                        </tr>
                        <tr>
                            <td>Password</td>
                            <td><input type="password" name="pass" /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>

                                <?php if ($_smarty_tpl->tpl_vars['userReferred']->value===true){?>                        
                                    <input name="currentPage"       type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['currentPage']->value;?>
">
                                    <input name="hotelId"           type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['hotelID']->value;?>
">
                                    <input name="supplierType"      type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['supplierType']->value;?>
">
                                    <input name="roomRateKey"       type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['roomRateKey']->value;?>
">
                                    <input name="roomRateCode"      type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['roomRateCode']->value;?>
">
                                    <input name="roomTypeCode"      type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['roomTypeCode']->value;?>
">
                                    <input name="hotelImage"        type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['hotelImage']->value;?>
">
                                    <input name="hotelName"         type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['hotelName']->value;?>
">
                                    <input name="roomDescription"   type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['roomDescription']->value;?>
">
                                    <input name="total"             type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['total']->value;?>
">
                                    <input name="averageRate"       type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['averageRate']->value;?>
">
                                    <input name="roomtotal"         type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['roomtotal']->value;?>
"/>
                                    <input name="nightlyRateTotal"  type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['nightlyRateTotal']->value;?>
"/>
                                    <input name="surchargeTotal"    type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['surchargeTotal']->value;?>
"/>
                                    <input name="currencyCode"      type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['currencyCode']->value;?>
"/>
                                <?php }?>
                                <input type="hidden" name="current_url" id="current_url" value="" />        
                                <input style="margin-top:20px;float:left;" id="search_button" type="submit" value="login" />
                            </td>
                        </tr>
                    </table>
                </form>
                <form action="create_account.php" method="post" onsubmit="document.getElementById('current_url').value=document.URL">
                    <?php if ($_smarty_tpl->tpl_vars['userReferred']->value===true){?>
                        <input name="currentPage"       type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['currentPage']->value;?>
">
                        <input name="hotelId"           type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['hotelID']->value;?>
">
                        <input name="supplierType"      type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['supplierType']->value;?>
">
                        <input name="roomRateKey"       type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['roomRateKey']->value;?>
">
                        <input name="roomRateCode"      type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['roomRateCode']->value;?>
">
                        <input name="roomTypeCode"      type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['roomTypeCode']->value;?>
">
                        <input name="hotelImage"        type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['hotelImage']->value;?>
">
                        <input name="hotelName"         type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['hotelName']->value;?>
">
                        <input name="roomDescription"   type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['roomDescription']->value;?>
">
                        <input name="total"             type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['total']->value;?>
">
                        <input name="averageRate"       type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['averageRate']->value;?>
">
                        <input name="roomtotal"         type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['roomtotal']->value;?>
"/>
                        <input name="nightlyRateTotal"  type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['nightlyRateTotal']->value;?>
"/>
                        <input name="surchargeTotal"    type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['surchargeTotal']->value;?>
"/>
                        <input name="currencyCode"      type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['currencyCode']->value;?>
"/>
                        <input name="accountCreation"   type="hidden" value="TRUE"/>
                    <?php }?>
                    <input type="submit" value="Create new account..." id="newCreateAccountButton" />                   
                    
                </form>
            <?php }else{ ?>  
    <div style="height:100px;">
    <label>Hello <?php echo $_smarty_tpl->tpl_vars['username']->value;?>
, you can proceed to your <a style="color:white;font-weight:bold;" href="underConstruction.php">account</a>.</label><br />
        <input style="margin-top:20px;float:left;" id="search_button" type="button" value="logout" onclick="document.location='login.php?logout=true'" />    
    </div>    
    
<?php }?>    
        </div>            
    </div>
    <div class="col_12 float_r">
    	<h2>Top Deals</h2>
        <img src="images/templatemo_image_02.jpg" alt="Image 02" class="float_l img_float_l" />
        <p><em>Check out our best hotels deals for the best touristic sites in London, San Francisco, Florida, New York, etc.</em></p>
        <p></p>
    </div>
    <div class="cleaner"></div>
</div> <!-- END of main -->
<a name="login"></a>
<script type="text/javascript">
    function clearUserInput(value,type) {
        if(type==1 && value=="<?php echo $_smarty_tpl->tpl_vars['formUserValue']->value;?>
") document.getElementById("user").value="";
        if(type==2 && value=="") document.getElementById("user").value="<?php echo $_smarty_tpl->tpl_vars['formUserValue']->value;?>
";        
}
</script>    <?php }} ?>